home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11.lha / libX11 / amiga_x.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-22  |  3.6 KB  |  90 lines

  1. /* Copyright (c) 1996 by Terje Pedersen.  All Rights Reserved   */
  2. /*                                                              */
  3. /* By using this code you will agree to these terms:            */
  4. /*                                                              */
  5. /* 1. You may not use this code for profit in any way or form   */
  6. /*    unless an agreement with the author has been reached.     */
  7. /*                                                              */
  8. /* 2. The author is not responsible for any damages caused by   */
  9. /*    the use of this code.                                     */
  10. /*                                                              */
  11. /* 3. All modifications are to be released to the public.       */
  12. /*                                                              */
  13. /* Thats it! Have fun!                                          */
  14. /* TP                                                           */
  15. /*                                                              */
  16.  
  17. /***
  18.    NAME
  19.      amiga_x
  20.    PURPOSE
  21.      
  22.    NOTES
  23.      
  24.    HISTORY
  25.      Terje Pedersen - Mar 3, 1996: Created.
  26. ***/
  27.  
  28. #ifndef AMIGA_X
  29. #define AMIGA_X
  30.  
  31. #include "libx11.h"
  32.  
  33. UBYTE *Xm_init_area(Object *,int,int,int);
  34. int isopen(Object *);
  35. int XmSetBackground(Object *,GC,int);
  36. int XmSetForeground(Object *,GC,int);
  37. int XXmSetForeground(Object *,GC,int);
  38. int XmUnmapWindow(Display *,Object *);
  39. int XmMapRaised(Object *);
  40. int XmFillPolygon(Display *,Object *,GC,XPoint *,int,int,int);
  41. int XmFillRectangle(Display *,Object *,GC,int,int,unsigned int,unsigned int);
  42. int XmFillRectangles(Display *,Object *,GC,XRectangle *,int);
  43. int XmFillArc(Display *,Object *,GC,int,int,unsigned int,unsigned int,int,int);
  44. int XmDrawPoint(Display *,Object *,GC,int,int);
  45. int XmDrawString(Display *,Object *,GC,int,int,char *,int);
  46. int XmMapRaised(Object *);
  47. int XmCenterMapWindow(Window,int,int,int,int);
  48. int XmDrawArc(Display *,Object *,GC,int,int,unsigned int,unsigned int,int,int);
  49. int XmDrawLines(Display *,Object *,GC,XPoint *,int,int);
  50. int XmDrawLine(Display *,Object *,GC,int,int,int,int);
  51. int XmDrawRectangle(Display *,Object *,GC,int,int,unsigned int,unsigned int);
  52. int XmDrawRectangles(Display *,Object *,GC,XRectangle *,int);
  53.  
  54. void Xm_settemp(Object *,UBYTE *);
  55. void unclipWindow(struct Layer *);
  56. void Xm_exit_area(Object *,UBYTE*);
  57. void XmSetClipRectangles(Display *,Object *,GC,int,int, XRectangle *,int,int);
  58. void XmClearWindow(Display *,Object *);
  59. void XmSetClipMask(Object *, Pixmap);
  60. int XmCopyArea(Display *display,Drawable src, Drawable dest,GC gc,int src_x,int src_y,unsigned int width,unsigned int height,int dest_x,int dest_y);
  61. int XmClearArea(Display *display,Window w,GC gc,int x,int y,unsigned int width, unsigned int height,Bool exposures);
  62.  
  63. extern Object **X11DrawablesMUI;
  64. extern struct Window **X11DrawablesWindows;
  65. extern X11BitMap_t *X11DrawablesBitmaps;
  66.  
  67. extern void Xm_remtemp(Object *);
  68. extern Window X11NewMUI(Object *);
  69. extern struct Window *Agetwin(Window win);
  70. extern void clip_end(struct Window *);
  71. extern int check_inside_subwindows(struct Window *,int,int);
  72. extern void X11AddExpose(Drawable,struct Window *);
  73. extern void X11AddConfigure(Drawable,struct Window *);
  74. extern void init_area(struct Window*,int,int,int);
  75. extern void exit_area(struct Window*);
  76. void showbitmap(struct BitMap *bm,int width,int height, int pos);
  77. void X11Fit_InternalFill( int w, int h );
  78. void X11Setup_InternalFill(Pixmap pm);
  79.  
  80. typedef struct {
  81.   void * win_rastptr; /* PLANEPTR */
  82.   int AWidth,AHeight,max_coords;
  83.   WORD *coor_buf;
  84.   struct TmpRas win_tmpras /*,*oldtmpras*/;
  85.   struct AreaInfo win_AIstruct;
  86.   int background;
  87. } X11userdata;
  88.  
  89. #endif /* AMIGA_X */
  90.